chrome.browserAction.onClicked.addListener((tab) => {
    chrome.tabs.create(
        {
            url: chrome.extension.getURL('main.html'),
        },
        (new_tab) => {
            // Tab opened.
        }
    );
});

chrome.contextMenus.create({
    title: "我的插件功能",
    contexts: ["page", "selection", "image"],
    onclick: myMenuItemClickHandler
});